package peng.yang.express.Adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;
import peng.yang.express.Bean.ListRes;

/**
 * Fragment加载主页面适配器
 * Created by Administrator on 2016/6/22.
 */
public class FragmentStatAdapterDemo extends FragmentPagerAdapter {
    List<Fragment> list;
    public FragmentStatAdapterDemo(FragmentManager fm) {
        super(fm);
        list= ListRes.getList();
    }
    @Override
    public int getCount() {
        return list.size();
    }
    @Override
    public Fragment getItem(int position) {
        return list.get(position);
    }


}
